package com.rms.hkpc.view;

import com.rms.hkpc.apiresult.ApiResultData;
import com.rms.hkpc.db.dto.RecordsRemarksDto;
import com.rms.hkpc.db.dto.ShortDto;
import com.rms.hkpc.db.dto.WorkOrderPhotosDto;
import com.rms.hkpc.db.dto.WorksOrderDto;

import java.util.List;

public interface IAddHocView extends IView {
    String getId();
    String getStatusId();
    String getParamId();
    String getVoice();
    int getVal();
    int getResult();
    int getExpDays();
    String getExpAt();
    String getWAt();
    List<RecordsRemarksDto> getRemarks();
    List<WorkOrderPhotosDto> getPhotos();

    void onGetDataSuccess(ApiResultData<WorksOrderDto> apiResult);
    void onGetDataFails(Exception msg);

    void onUploadSuccess(ApiResultData<String> apiResult,int pos);
    void onUploadFails(Exception msg,int pos);

    void onUpdateSuccess(ApiResultData<String> apiResult);
    void onUpdateFails(Exception msg);

    void onGetComboSuccess(ApiResultData<List<ShortDto>> apiResult);
    void onGetComboFails(Exception msg);

    void onCreateSuccess(ApiResultData<String> apiResult);
    void onCreateFails(Exception msg);
}
